package com.whyw.repair.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.whyw.entity.RepairOrder;
import com.whyw.repair.dao.RepairOrderDao;
import com.whyw.repair.service.RepairOrderService;
import com.whyw.system.utils.UserContextHolder;
import org.springframework.stereotype.Service;

/**
 * 报修单表(RepairOrder)表服务实现类
 *
 * @author makejava
 * @since 2025-06-29 01:17:28
 */
@Service("repairOrderService")
public class RepairOrderServiceImpl extends ServiceImpl<RepairOrderDao, RepairOrder> implements RepairOrderService {

    @Override
    public boolean createRepairOrder(RepairOrder repairOrder) {
        repairOrder.setUserId(UserContextHolder.getUserId());
        return save(repairOrder);
    }
}

